package com.hxrk.aidlservice;

import android.app.Notification;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

import com.hxrk.cecardvr.MyApplication;

public class CarTaxiDVRService extends Service {

	private ServiceBinder mServiceBinder = new ServiceBinder();

	@Override
	public IBinder onBind(Intent intent) {
		return mServiceBinder;
	}

	@Override
	public int onStartCommand(Intent intent, int flags, int startId) {
		startForeground(1,new Notification());
		//绑定建立链接
		if (MyApplication.mDvrManager != null)
			MyApplication.mDvrManager.bindMpospService(this);
		return START_STICKY;
	}
}
